package com.ohuang.simpledb;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;




class DbHelper extends SQLiteOpenHelper {

    public static final String tableName = "stringTable";

    private static final String CREATE_GAME_LIST_TABLE = "CREATE TABLE IF NOT EXISTS " + tableName + " (" +
            "`id` integer PRIMARY KEY AUTOINCREMENT, " +
            "`data` TEXT, " +
            "`key` TEXT);";

    public DbHelper( Context context,  String name) {
        super(context, name, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_GAME_LIST_TABLE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
